<!DOCTYPE html>
<html lang="en">
<head>
    <script src="/static/header.js"></script>
</head>
<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar"
                    aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">NANCAL</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">

        </div>
    </div>
</nav>
<div class="container">
    <div class="row">
        <div class="col-md-6 col-md-offset-3">
            <div class="page-header">
                <h1>修改信息</h1>
            </div>
            <form class="form-horizontal" action="/systemctl/edituser/?id={{ press_obj.id }}" method="post">
                <div class="form-group" style="margin-bottom: 10px;">
                    <label for="press_user" class="col-sm-3 control-label">用户名</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_user" name="user" placeholder="用户名"  value="{{ press_obj.username }}">
                    </div>
                    <label for="press_user" class="col-sm-3 control-label">真实姓名</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_user" name="name" placeholder="真实姓名"  value="{{ press_obj.name }}">
                    </div>
                    <label for="press_pwd" class="col-sm-3 control-label">密码</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_pwd" name="pwd" placeholder="possword"  value="{{ press_obj.pwd }}">
                    </div>
                    <label for="press_emil" class="col-sm-3 control-label">邮箱</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
                        <input type="text" class="form-control" id="press_emil" name="emil" placeholder="邮箱"  value="{{ press_obj.emil }}">
                    </div>
                    <label for="press_remark" class="col-sm-3 control-label">权限</label>
                    <div class="col-sm-9" style="margin-bottom: 10px;">
{#                        <input type="text" class="form-control" id="press_remark" name="remark" placeholder="备注"  value="{{ press_obj.remark }}">#}
                        <select type="text" class="form-control" id="press_remark" name="jurisdiction" value="{{ press_obj.jurisdiction }}"  >
                                    {% if press_obj.jurisdiction == "1" %}
                                        <option value ="1">运维</option>
                                        <option value ="3">测试</option>
                                        <option value ="2">开发</option>
                                    {% endif %}
                                    {% if press_obj.jurisdiction == "2" %}
                                        <option value ="2">开发</option>
                                        <option value ="1">运维</option>
                                        <option value ="3">测试</option>
                                    {% endif %}
                                    {% if press_obj.jurisdiction == "3" %}
                                        <option value ="3">测试</option>
                                        <option value ="2">开发</option>
                                        <option value ="1">运维</option>
                                    {% endif %}
                            </select>
                    </div>
                </div>

                <div class="form-group">
                    <div class="col-sm-offset-10 col-sm-9">
                        <button type="submit" class="btn btn-default">确认修改</button>
                        <P>{{ error_msg  }}</P>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

</body>
</html>
